
package com.be.beadmin.product.repository;

import com.be.beadmin.product.entity.ErrorReport;
import io.swagger.models.auth.In;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
* @author ljh
* @date 2023-04-21
**/
public interface ErrorReportRepository extends JpaRepository<ErrorReport, String>, JpaSpecificationExecutor<ErrorReport> {

    ErrorReport findErrorReportByIdAndDelete(String id, Integer delete);

    ErrorReport findErrorReportById(String id);

    Integer countErrorReportByDelete(int delete);

    Integer countErrorReportByHandleStatusAndDelete(Integer handleStatus , Integer delete);

    List<ErrorReport> findErrorReportByHandleStatusAndDelete(Integer handleStatus, int delete);

    List<ErrorReport> findErrorReportByDelete(int delete);
}